const express = require("express");
// const bodyParser = require("body-parser");

const app = express();

// app.use(bodyParser.urlencoded({ extended: false }));
// app.use(bodyParser.json());
app.use(express.json());

app.post("/api/users/:id", (req, res) => {
  console.log(req.body);
  console.log("querystring:");
  console.log(req.query);
  console.log("params:");
  console.log(req.params);
  res.send("User created");
});

app.listen(3000, () => {
  console.log("Server is running on port 3000");
});
